package com.wcx.test.springboot.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author chengxing.wu@xiaobao100.com
 * @date 2021/5/18 10:21
 */
@ConfigurationProperties(prefix = "student")
@Component
@Data
public class Student {

    private final Classroom a = new Classroom();
    private final Classroom b = new Classroom();

    @Data
    public static class Classroom {
        private Course course = new Course();
    }

    @Data
    public static class Course {
        /**
         * 课程id
         */
        private String courseId;

        /**
         * 课程名称
         */
        private String courseName;
    }
}
